package com.zyd.shiro.persistence.beans;

import com.zyd.shiro.business.annotation.FieldValue;
import com.zyd.shiro.business.annotation.TitleValue;
import com.zyd.shiro.business.enums.MenuEnum;
import com.zyd.shiro.framework.object.AbstractDataDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TitleValue(name = "派发",nume = MenuEnum.MODULE,code = "distribute")
public class PakDistribute extends AbstractDataDO {

    @FieldValue(name = "编号")
    private String unicode;

    @FieldValue(name = "派发时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date distributeTime;

    @FieldValue(name="申请人ID")
    private Long applicant;

    @FieldValue(name="申请人")
    private String applicantName;

    @FieldValue(name = "申请时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date applicantTime;

    @FieldValue(name = "处理人")
    private Long buyer;

    @FieldValue(name = "处理人")
    private String buyerName;

    @FieldValue(name = "原因")
    private String reason;

    @FieldValue(name = "备注")
    private String remark;

    @FieldValue(name = "派发状态")//0未派发 1已派发 2撤销
    private Integer disstatus;

    @FieldValue(name = "审批状态")//0初始状态 1同意 2拒绝
    private Integer appstatus;

    @FieldValue(name = "认领状态")//0未认领 1已认领
    private Integer claimstatus;


}
